package nc.tf.rest2024.log;

import nc.bs.dao.BaseDAO;
import nc.bs.dao.DAOException;
import nc.bs.framework.server.ServerConfiguration;

public class AsynLogImpl implements IAsynLogService {

	@Override
	public void insertLog_RequiresNew(TfOperateLogVO operateLogVO) {
		try {
			getBaseDAO().insertVO(operateLogVO);
		} catch (DAOException e) {
			e.printStackTrace();
		}
	}

	private BaseDAO baseDAO;

	public BaseDAO getBaseDAO() {
		if (baseDAO == null) {
//			String dataSourceName = ServerConfiguration.getServerConfiguration().getDataSourceNames()[0];
			baseDAO = new BaseDAO("NC65");
		}
		return baseDAO;
	}

}
